<?php
namespace app\oa\model;

use think\Model;

class User extends Model {
    protected $name = 'oa_user';

    public function department() {
        return $this->belongsTo("Department", "department_id");
    }
}